/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prettypenny;

    /* DB Struture
     * car: carId, make, model, fuelType, regNum
     * carService: serviceID, clientId, carId, locationId, mechanicId, typeId, serviceDate, serviceTime, description, price, bookingDate, mileage
     * client: clientId, forname, surname, dob, addLine1, addLine2, city, county, postcode, homeNum, mobileNum, email
     * location: locationId, branch
     * mechanic: mechanicId, forename, surname, mobNum
     * serviceType: typeId, typeOfService
     */
public class Booking {
    private int serviceID;
    private int clientID;
    private int carID;
    private int locationID;
    private int mechanicID;
    private int serviceTypeID;
    private String serviceDate;
    private String serviceTime;
    private int serviceDuration;
    private String serviceDesc;
    private double servicePrice;
    private int mileage;
    private String bookingDate;
    public Booking(int serID, int clientId, int carID, int locationID, int mechanicID, int typeID, String serviceDate, String serviceTime, int serviceDuration,
            String serviceDesc, double servicePrice, String bookingDate, int mileage) {
        this.serviceID = serID;
        this.clientID = clientId;
        this.carID = carID;
        this.locationID = locationID;
        this.mechanicID = mechanicID;
        this.serviceTypeID = typeID;
        this.serviceDate = serviceDate;
        this.serviceTime = serviceTime;
        this.serviceDuration = serviceDuration;
        this.serviceDesc = serviceDesc;
        this.servicePrice = servicePrice;
        this.mileage = mileage;
        this.bookingDate = bookingDate;
    }
    
    /*
     * branch
     * mechanic ---- if have time, add 'timetables' for mechanics and automatically assign
     * type
     *  THIS IS IMPORTANT - THIS CLASS LINKS THEM
     */
    public int getDuration() {
        return this.serviceDuration;
    }
    public int getMileage() {
        return this.mileage;
    }
    public int getCarID() {
        return this.carID;
    }
    public String getServiceDesc() {
        return this.serviceDesc;
    }
    public String getServiceTime() {
        return this.serviceTime;
    }
    public String getServiceDate() {
        return this.serviceDate;
    }
    public int getServiceID() {
        return this.serviceID;
    }
    public int getClientID() {
        return this.clientID;
    }
    public int getLocationID() {
        return this.locationID;
    }
    public int getMechanicID() {
        return this.mechanicID;
    }
    public int getType() {
        return this.serviceTypeID;
    }
    public double getPrice() {
        return this.servicePrice;
    }
    public String getBookingDate() {
        return this.bookingDate;
    }
    /* Shouldn't want to be setting these here - should be setting them in their own classes unless adding new
     */
    public void setDuration(int value) {
        this.serviceDuration = value;
    }
    public void setServiceDesc (String value) {
        this.serviceDesc = value;
    }
    public void setServiceTime(String value) {
        this.serviceTime = value;
    }
    public void setServiceDate(String value) {
        this.serviceDate = value;
    }
    public void setTypeID (int value) {
        this.serviceTypeID = value;
    }
    public void setLocationID (int value) {
        this.locationID = value;
    }
    public void setServiceID(int value) {
       this.serviceID = value;
    }
    public void setClientID(int value) {
        this.clientID = value;
    }
    public void setCarID(int value) {
        this.carID = value;
    }
    
}
